﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CasignDesignGA.Casing
{
    class CasingProperty
    {
        private SortedDictionary<double,double> propertyMap;

        public CasingProperty()
        {
            this.propertyMap = new SortedDictionary<double,double>();
        }

        public void Add(double key, double value){
            this.propertyMap.Add(key,value);
        }

        public double getKeyValue(double key){
            return (double)this.propertyMap[key];
        }

        public bool contains(double key)
        {
            return this.propertyMap.ContainsKey(key);
        }

        public ICollection getKeys()
        {
            return this.propertyMap.Keys;
        }
    }
}
